<!-- 本示例未包含完整css，获取外链css请参考上文，在hello uni-app项目中查看 -->
<template>
	<view class="content">
		<view class="container2">
			<input class="left-search" focus placeholder="请输入搜索内容" />
			<button class="right-search" type="primary" size="mini">搜索</button>
		</view>
		<view class="box2">
			<uni-datetime-picker class="top-box"></uni-datetime-picker>
			<uni-datetime-picker class="bottom-box"></uni-datetime-picker>
			<button type="primary" class="yy">一键预约</button>
			<view class="box3">
				<view class="box3-item">
					<image class="img1" src="../../static/iconfont/7.png"></image>
					<text>租车订单</text>
				</view>
				<view class="box3-item">
					<image class="img2" src="../../static/iconfont/8.png"></image>
					<text>车辆报修</text>
				</view>
				<view class="box3-item">
					<image class="img3" src="../../static/iconfont/6.png"></image>
					<text>车辆发布</text>
				</view>
			</view>
		</view>
		<view class="box4">
			<view class="uni-margin-wrap">
				<swiper class="swiper" circular :indicator-dots="indicatorDots" :autoplay="autoplay"
					:interval="interval" :duration="duration">
					<swiper-item>
						<image mode="aspectFit" class="swiper-image" src="../../static/img/R-1.jpg"></image>
					</swiper-item>
					<swiper-item>
						<image mode="aspectFit" class="swiper-image" src="../../static/img/R-2.jpg"></image>
					</swiper-item>
					<swiper-item>
						<image mode="aspectFit" class="swiper-image" src="../../static/img/R-3.jpg"></image>
					</swiper-item>
				</swiper>
			</view>
		</view>
		<view class="box5"> 热门推荐</view>
		<view class="box6">
			<view class="left-box">
				<image mode="aspectFit" class="left-box-img" src="../../static/img/R-4.jpg"></image>
				</view>
				<view class="right-box">
					<view class="right-box1">布加迪Atlantic</view>
					<view class="right-box2">高级跑车</view>
					<view class="right-box3">车辆详情</view>
				</view>
			</view>
		<view class="box7">
			<view class="left-box">
				<image mode="aspectFit" class="left-box-img" src="../../static/img/R-6.jpg"></image>
				</view>
				<view class="right-box">
					<view class="right-box1">宾利Bentley</view>
					<view class="right-box2">高级跑车</view>
					<view class="right-box3">车辆详情</view>
				</view>
			</view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				indicatorDots: true,
				autoplay: true,
				interval: 2000,
				duration: 500
			}
		},
		methods: {
			changeIndicatorDots(e) {
				this.indicatorDots = !this.indicatorDots
			},
			changeAutoplay(e) {
				this.autoplay = !this.autoplay
			},
			intervalChange(e) {
				this.interval = e.target.value
			},
			durationChange(e) {
				this.duration = e.target.value
			}
		}
	}
</script>
<style lang="scss" scoped>
	.content {
		max-width: 600px;
		padding: 0 10px;
		background-color: rgb(247, 247, 247);
	}

	.container2 {
		background-color: #FFFFFF;
		display: flex;
		justify-content: space-between;
	}

	.left-search {
		width: 50%;
		height: 32px;
		border-radius: 50rpx;
		background-color: #BBBBBB;
		padding-left: 50px;
	}

	.right-search {
		width: 30%;
		// height: 32px;
		border-radius: 50rpx;
		text-align: center;
	}

	.box2 {
		background-color: #FFFFFF;
		margin: 0 auto;

	}

	.bottom-box {
		padding-top: 20px;
	}

	.top-box {
		padding-top: 20px;
	}

	.yy {
		line-height: 35px;
		width: 90%;
		height: 36px;
		margin-top: 20px;
	}

	.img1 {
		display: flex;
		padding-top: 15px;
		width: 30px;
		height: 30px;
	}

	.img2 {
		display: flex;
		padding-top: 15px;
		width: 30px;
		height: 30px;
	}

	.img3 {
		display: flex;
		padding-top: 15px;
		width: 30px;
		height: 30px;
	}

	.box3 {
		display: flex;
		flex-direction: row;
		justify-content: space-evenly;
		text-align: center;
	}

	.box3 .box3-item {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}

	.box4 {

		background-color: #FFFFFF;

	}

	.box4 .uni-margin-wrap {}

	.box4 .swiper {
		height: 250px;
	}

	.box4 .swiper-item {
		display: block;
		height: 250rpx;

	}

	.box4 .swiper-image {
		width: 100%;
	}

	.box5 {
		font-size: 20px;
		font-weight: bold;
	}

	.box6 {
		
		display: flex;
	}

	.box6 .left-box {
		width: 80%;
	}
	.left-box-img{
		margin-top: -30px;
		width: 70%;
	}
	.box6 .right-box{
		width: 30%;
		margin-left: -50px;
		margin-top: 20px;
	}
      
	.box6 .right-box1{
	margin-top: 10px;
	   font-size: 16px;
	   font-weight: bold;
	   
	   
	}
	.box6 .right-box2{
		margin-top: 10px;
		font-size: 16px;
	}
	.box6 .right-box3{
		color: #9A9A9A;
		margin-top: 10px;
	}

	.box7 {
		margin-top: -60px;
		display: flex;
	}
	
	.box7 .left-box {
		width: 80%;
	}
	.left-box-img{
		margin-top: -30px;
		width: 70%;
	}
	.box7 .right-box{
		width: 30%;
		margin-left: -50px;
		margin-top: 20px;
	}
	  
	.box7 .right-box1{
	margin-top: 10px;
	   font-size: 16px;
	   font-weight: bold;
	   
	   
	}
	.box7 .right-box2{
		margin-top: 10px;
		font-size: 16px;
	}
	.box7 .right-box3{
		color: #9A9A9A;
		margin-top: 10px;
	}
</style>